Error 500 could be ANYTHING! (almost).
Below is a mist of some of the most common
problems and how you can go about fixing
them.
- Check to make sure that the
ACTION="" of your script is
pointing to the correct CGI program.
If it is, make sure that this file is
also chmoded
755 so that everyone, including the
Web Server User ID has permission to
execute it.
- Check your server's error_log (On
NCSA servers, this will most likely
be located in
/usr/local/etc/httpd/logs/error_log).
Check them right after you receive
this error. They will often give you
insight as to why you received this
error. If there are problems with the
scripts, correct any that the
error_log may mention.
- Run the script from the shell and
make sure that you don't get any
errors.
- Make sure all files that supposed to
be opened during execution by the
script are chmoded
so that the web server can read them.
- Check all paths to certain commands
and make sure they are correct. An
incorrect path in your script will
cause execution of your script to
halt.
- Check your #!/usr/bin/perl
line and make sure that it points to
the proper location of the perl
binary on your system.
These are just a few of the MANY
possibilities. If you have solved this
problem in another way, let me know so I can
add it to this list. If you have done all of
this including reading the README file and
doing what it says to each script, feel free
to email me with your problem.